FROM reg.citms.cn:7443/public/baseimage-java:latest
RUN mkdir -p /opt/upmserver/script/h2_schema/ && mkdir -p /opt/upmserver/db
ADD ./*.jar /opt/upmserver/app.jar
ADD ./init.sql /opt/upmserver/script/h2_schema/init.sql
WORKDIR /opt/upmserver
ENTRYPOINT ["java", "-Duser.timezone=GMT+08", "-jar", "-Xms4096m", "-Xmx4096m", "app.jar"]